package com.wuliming.gulimall.ware.dao;

import com.wuliming.gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存
 * 
 * @author wuliming
 * @email wuliming@gmail.com
 * @date 2023-12-05 14:21:58
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void addStock(@Param("wareSkuEntity") WareSkuEntity wareSkuEntity);

    Long getSkuStock(Long skuId);
}
